#include<stdio.h>

int main(int argc, char const *argv[])
{
    int n;
    scanf("%d", &n);
    for(int i = 1; i <= n; i++){
        for(int j = 1; j <= 2*n+i-3; j++){
            if(j == n-i+1 || j > n-i+1 && (i == 1 || i == n))
                printf("*");
            else
                printf(" ");
        }
        printf("*\n");
    }
    return 0;
}